<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace app\assets;

use yii\web\AssetBundle;
use \yii\web\View;

/**
 * 对应后台资源配置
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class BackendAsset extends BaseAsset
{

    public function __construct(array $config = [])
    {
        parent::__construct($config);
        // [CSS]样式文件
        $this->css = array_merge($this->css, [
            ['plugin/element-ui/2.15.6/css/element-ui.css', 'position' => View::POS_END],
            ['css/vue2-animate.min.css', 'position' => View::POS_END],
            ['css/backend/common/common.css', 'position' => View::POS_END],
            ['css/icon.css', 'position' => View::POS_END]
        ]);
        // [JS]样式文件
        $this->js = array_merge($this->js, [
            ['js/jquery.min.js', 'position' => View::POS_HEAD],
            ['js/vue.js', 'position' => View::POS_HEAD],
            ['plugin/element-ui/2.15.6/js/element-ui.js', 'position' => View::POS_HEAD],
            ['js/backend/common/pageUrl.js', 'position' => View::POS_HEAD],
            ['js/backend/common/apiUrl.js', 'position' => View::POS_HEAD],
            ['js/backend/common/settingKey.js', 'position' => View::POS_HEAD],
            'js/common.js',
        ]);
        // 加入的其他资源
        $this->depends = array_merge($this->depends, [

        ]);
    }
}
